package com.tencent.XianCheng;

/**
 * 3
 * 创建一个线程类
 */
public class BankThread extends Thread {
	private Bank bank = null;

	public BankThread(Bank bank) {
		this.bank = bank;
	}
	
	@Override
	public void run(){
		System.out.println("取钱："+bank.getMoney(400));
	}
}
